<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateUserTable extends Migration {

    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up() {
        Schema::create('user', function(Blueprint $table) {
                $table->char('id', 5);
                $table->string('passwd');
                $table->string('usertype');
                $table->string('userstatus');
                $table->string('saint');
                $table->string('username');
                $table->string('firstname');
                $table->string('gender');
                $table->date('birthday');
                $table->string('usercrew');
                $table->date('baptism_date');
                $table->date('eucharist_date');
                $table->date('confirmation_date');
                $table->string('email');
                $table->string('phone');
                $table->string('address');
                $table->string('parish');
                $table->string('gencode');
                $table->text('note');
                $table->char('remember_token');
                $table->char('language');
                $table->char('updater', 5);
                $table->timestamps();
                $table->primary('id');
            });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down() {
        Schema::drop('user');
    }

}
